package com.leesche.zcsp.node.web.model;

import java.util.ArrayList;
import java.util.List;

public class PubProductExchangeCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PubProductExchangeCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExchangidIsNull() {
            addCriterion("ExchangID is null");
            return (Criteria) this;
        }

        public Criteria andExchangidIsNotNull() {
            addCriterion("ExchangID is not null");
            return (Criteria) this;
        }

        public Criteria andExchangidEqualTo(Long value) {
            addCriterion("ExchangID =", value, "exchangid");
            return (Criteria) this;
        }

        public Criteria andExchangidNotEqualTo(Long value) {
            addCriterion("ExchangID <>", value, "exchangid");
            return (Criteria) this;
        }

        public Criteria andExchangidGreaterThan(Long value) {
            addCriterion("ExchangID >", value, "exchangid");
            return (Criteria) this;
        }

        public Criteria andExchangidGreaterThanOrEqualTo(Long value) {
            addCriterion("ExchangID >=", value, "exchangid");
            return (Criteria) this;
        }

        public Criteria andExchangidLessThan(Long value) {
            addCriterion("ExchangID <", value, "exchangid");
            return (Criteria) this;
        }

        public Criteria andExchangidLessThanOrEqualTo(Long value) {
            addCriterion("ExchangID <=", value, "exchangid");
            return (Criteria) this;
        }

        public Criteria andExchangidIn(List<Long> values) {
            addCriterion("ExchangID in", values, "exchangid");
            return (Criteria) this;
        }

        public Criteria andExchangidNotIn(List<Long> values) {
            addCriterion("ExchangID not in", values, "exchangid");
            return (Criteria) this;
        }

        public Criteria andExchangidBetween(Long value1, Long value2) {
            addCriterion("ExchangID between", value1, value2, "exchangid");
            return (Criteria) this;
        }

        public Criteria andExchangidNotBetween(Long value1, Long value2) {
            addCriterion("ExchangID not between", value1, value2, "exchangid");
            return (Criteria) this;
        }

        public Criteria andProductidIsNull() {
            addCriterion("ProductID is null");
            return (Criteria) this;
        }

        public Criteria andProductidIsNotNull() {
            addCriterion("ProductID is not null");
            return (Criteria) this;
        }

        public Criteria andProductidEqualTo(Long value) {
            addCriterion("ProductID =", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotEqualTo(Long value) {
            addCriterion("ProductID <>", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThan(Long value) {
            addCriterion("ProductID >", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidGreaterThanOrEqualTo(Long value) {
            addCriterion("ProductID >=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThan(Long value) {
            addCriterion("ProductID <", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidLessThanOrEqualTo(Long value) {
            addCriterion("ProductID <=", value, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidIn(List<Long> values) {
            addCriterion("ProductID in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotIn(List<Long> values) {
            addCriterion("ProductID not in", values, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidBetween(Long value1, Long value2) {
            addCriterion("ProductID between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andProductidNotBetween(Long value1, Long value2) {
            addCriterion("ProductID not between", value1, value2, "productid");
            return (Criteria) this;
        }

        public Criteria andMemberidIsNull() {
            addCriterion("memberID is null");
            return (Criteria) this;
        }

        public Criteria andMemberidIsNotNull() {
            addCriterion("memberID is not null");
            return (Criteria) this;
        }

        public Criteria andMemberidEqualTo(Long value) {
            addCriterion("memberID =", value, "memberid");
            return (Criteria) this;
        }

        public Criteria andMemberidNotEqualTo(Long value) {
            addCriterion("memberID <>", value, "memberid");
            return (Criteria) this;
        }

        public Criteria andMemberidGreaterThan(Long value) {
            addCriterion("memberID >", value, "memberid");
            return (Criteria) this;
        }

        public Criteria andMemberidGreaterThanOrEqualTo(Long value) {
            addCriterion("memberID >=", value, "memberid");
            return (Criteria) this;
        }

        public Criteria andMemberidLessThan(Long value) {
            addCriterion("memberID <", value, "memberid");
            return (Criteria) this;
        }

        public Criteria andMemberidLessThanOrEqualTo(Long value) {
            addCriterion("memberID <=", value, "memberid");
            return (Criteria) this;
        }

        public Criteria andMemberidIn(List<Long> values) {
            addCriterion("memberID in", values, "memberid");
            return (Criteria) this;
        }

        public Criteria andMemberidNotIn(List<Long> values) {
            addCriterion("memberID not in", values, "memberid");
            return (Criteria) this;
        }

        public Criteria andMemberidBetween(Long value1, Long value2) {
            addCriterion("memberID between", value1, value2, "memberid");
            return (Criteria) this;
        }

        public Criteria andMemberidNotBetween(Long value1, Long value2) {
            addCriterion("memberID not between", value1, value2, "memberid");
            return (Criteria) this;
        }

        public Criteria andProductnameIsNull() {
            addCriterion("ProductName is null");
            return (Criteria) this;
        }

        public Criteria andProductnameIsNotNull() {
            addCriterion("ProductName is not null");
            return (Criteria) this;
        }

        public Criteria andProductnameEqualTo(String value) {
            addCriterion("ProductName =", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameNotEqualTo(String value) {
            addCriterion("ProductName <>", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameGreaterThan(String value) {
            addCriterion("ProductName >", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameGreaterThanOrEqualTo(String value) {
            addCriterion("ProductName >=", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameLessThan(String value) {
            addCriterion("ProductName <", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameLessThanOrEqualTo(String value) {
            addCriterion("ProductName <=", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameLike(String value) {
            addCriterion("ProductName like", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameNotLike(String value) {
            addCriterion("ProductName not like", value, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameIn(List<String> values) {
            addCriterion("ProductName in", values, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameNotIn(List<String> values) {
            addCriterion("ProductName not in", values, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameBetween(String value1, String value2) {
            addCriterion("ProductName between", value1, value2, "productname");
            return (Criteria) this;
        }

        public Criteria andProductnameNotBetween(String value1, String value2) {
            addCriterion("ProductName not between", value1, value2, "productname");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("Price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("Price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(Integer value) {
            addCriterion("Price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(Integer value) {
            addCriterion("Price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(Integer value) {
            addCriterion("Price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("Price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(Integer value) {
            addCriterion("Price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(Integer value) {
            addCriterion("Price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<Integer> values) {
            addCriterion("Price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<Integer> values) {
            addCriterion("Price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(Integer value1, Integer value2) {
            addCriterion("Price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(Integer value1, Integer value2) {
            addCriterion("Price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPointIsNull() {
            addCriterion("Point is null");
            return (Criteria) this;
        }

        public Criteria andPointIsNotNull() {
            addCriterion("Point is not null");
            return (Criteria) this;
        }

        public Criteria andPointEqualTo(Integer value) {
            addCriterion("Point =", value, "point");
            return (Criteria) this;
        }

        public Criteria andPointNotEqualTo(Integer value) {
            addCriterion("Point <>", value, "point");
            return (Criteria) this;
        }

        public Criteria andPointGreaterThan(Integer value) {
            addCriterion("Point >", value, "point");
            return (Criteria) this;
        }

        public Criteria andPointGreaterThanOrEqualTo(Integer value) {
            addCriterion("Point >=", value, "point");
            return (Criteria) this;
        }

        public Criteria andPointLessThan(Integer value) {
            addCriterion("Point <", value, "point");
            return (Criteria) this;
        }

        public Criteria andPointLessThanOrEqualTo(Integer value) {
            addCriterion("Point <=", value, "point");
            return (Criteria) this;
        }

        public Criteria andPointIn(List<Integer> values) {
            addCriterion("Point in", values, "point");
            return (Criteria) this;
        }

        public Criteria andPointNotIn(List<Integer> values) {
            addCriterion("Point not in", values, "point");
            return (Criteria) this;
        }

        public Criteria andPointBetween(Integer value1, Integer value2) {
            addCriterion("Point between", value1, value2, "point");
            return (Criteria) this;
        }

        public Criteria andPointNotBetween(Integer value1, Integer value2) {
            addCriterion("Point not between", value1, value2, "point");
            return (Criteria) this;
        }

        public Criteria andTicketIsNull() {
            addCriterion("ticket is null");
            return (Criteria) this;
        }

        public Criteria andTicketIsNotNull() {
            addCriterion("ticket is not null");
            return (Criteria) this;
        }

        public Criteria andTicketEqualTo(Integer value) {
            addCriterion("ticket =", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketNotEqualTo(Integer value) {
            addCriterion("ticket <>", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketGreaterThan(Integer value) {
            addCriterion("ticket >", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketGreaterThanOrEqualTo(Integer value) {
            addCriterion("ticket >=", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketLessThan(Integer value) {
            addCriterion("ticket <", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketLessThanOrEqualTo(Integer value) {
            addCriterion("ticket <=", value, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketIn(List<Integer> values) {
            addCriterion("ticket in", values, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketNotIn(List<Integer> values) {
            addCriterion("ticket not in", values, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketBetween(Integer value1, Integer value2) {
            addCriterion("ticket between", value1, value2, "ticket");
            return (Criteria) this;
        }

        public Criteria andTicketNotBetween(Integer value1, Integer value2) {
            addCriterion("ticket not between", value1, value2, "ticket");
            return (Criteria) this;
        }

        public Criteria andSdata1IsNull() {
            addCriterion("sData1 is null");
            return (Criteria) this;
        }

        public Criteria andSdata1IsNotNull() {
            addCriterion("sData1 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata1EqualTo(String value) {
            addCriterion("sData1 =", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1NotEqualTo(String value) {
            addCriterion("sData1 <>", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1GreaterThan(String value) {
            addCriterion("sData1 >", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1GreaterThanOrEqualTo(String value) {
            addCriterion("sData1 >=", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1LessThan(String value) {
            addCriterion("sData1 <", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1LessThanOrEqualTo(String value) {
            addCriterion("sData1 <=", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1Like(String value) {
            addCriterion("sData1 like", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1NotLike(String value) {
            addCriterion("sData1 not like", value, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1In(List<String> values) {
            addCriterion("sData1 in", values, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1NotIn(List<String> values) {
            addCriterion("sData1 not in", values, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1Between(String value1, String value2) {
            addCriterion("sData1 between", value1, value2, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata1NotBetween(String value1, String value2) {
            addCriterion("sData1 not between", value1, value2, "sdata1");
            return (Criteria) this;
        }

        public Criteria andSdata9IsNull() {
            addCriterion("sData9 is null");
            return (Criteria) this;
        }

        public Criteria andSdata9IsNotNull() {
            addCriterion("sData9 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata9EqualTo(String value) {
            addCriterion("sData9 =", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9NotEqualTo(String value) {
            addCriterion("sData9 <>", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9GreaterThan(String value) {
            addCriterion("sData9 >", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9GreaterThanOrEqualTo(String value) {
            addCriterion("sData9 >=", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9LessThan(String value) {
            addCriterion("sData9 <", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9LessThanOrEqualTo(String value) {
            addCriterion("sData9 <=", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9Like(String value) {
            addCriterion("sData9 like", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9NotLike(String value) {
            addCriterion("sData9 not like", value, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9In(List<String> values) {
            addCriterion("sData9 in", values, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9NotIn(List<String> values) {
            addCriterion("sData9 not in", values, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9Between(String value1, String value2) {
            addCriterion("sData9 between", value1, value2, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata9NotBetween(String value1, String value2) {
            addCriterion("sData9 not between", value1, value2, "sdata9");
            return (Criteria) this;
        }

        public Criteria andSdata3IsNull() {
            addCriterion("sData3 is null");
            return (Criteria) this;
        }

        public Criteria andSdata3IsNotNull() {
            addCriterion("sData3 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata3EqualTo(String value) {
            addCriterion("sData3 =", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotEqualTo(String value) {
            addCriterion("sData3 <>", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3GreaterThan(String value) {
            addCriterion("sData3 >", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3GreaterThanOrEqualTo(String value) {
            addCriterion("sData3 >=", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3LessThan(String value) {
            addCriterion("sData3 <", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3LessThanOrEqualTo(String value) {
            addCriterion("sData3 <=", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3Like(String value) {
            addCriterion("sData3 like", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotLike(String value) {
            addCriterion("sData3 not like", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3In(List<String> values) {
            addCriterion("sData3 in", values, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotIn(List<String> values) {
            addCriterion("sData3 not in", values, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3Between(String value1, String value2) {
            addCriterion("sData3 between", value1, value2, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotBetween(String value1, String value2) {
            addCriterion("sData3 not between", value1, value2, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata4IsNull() {
            addCriterion("sData4 is null");
            return (Criteria) this;
        }

        public Criteria andSdata4IsNotNull() {
            addCriterion("sData4 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata4EqualTo(String value) {
            addCriterion("sData4 =", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotEqualTo(String value) {
            addCriterion("sData4 <>", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4GreaterThan(String value) {
            addCriterion("sData4 >", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4GreaterThanOrEqualTo(String value) {
            addCriterion("sData4 >=", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4LessThan(String value) {
            addCriterion("sData4 <", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4LessThanOrEqualTo(String value) {
            addCriterion("sData4 <=", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4Like(String value) {
            addCriterion("sData4 like", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotLike(String value) {
            addCriterion("sData4 not like", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4In(List<String> values) {
            addCriterion("sData4 in", values, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotIn(List<String> values) {
            addCriterion("sData4 not in", values, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4Between(String value1, String value2) {
            addCriterion("sData4 between", value1, value2, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotBetween(String value1, String value2) {
            addCriterion("sData4 not between", value1, value2, "sdata4");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}